<?php
/**
 * Created by PhpStorm.
 * User: Eric-Nothing
 * Date: 2018/4/18
 * Time: 21:30
 */

namespace app\admin\behavior;

use think\Controller;
use think\Session;

class UserCheck
{
    use \traits\controller\Jump;

    public function run(&$param){

        if (!Session::has('admin')){

            return $this->redirect('/admin/login');

        }

    }

}